<%@page import="domein.*" %>
<%
String pageTitel = "Home"; //pagina titel wordt getoond in header.jsp
%>
<!-- include header -->
<%@ include file="skelet/header.jsp"%>
<!-- begin content -->
			<div class="span12">
				<div class="hero-unit">
					<h1>Welkom.</h1>
					<p>U bent nu ingelogd!</p>
					<% 
					Object o = request.getSession().getAttribute("user");
					int rechten = 0;
					if(o instanceof Personeel){
					Personeel p = (Personeel)o;
					if(p.getFunctie().equals("baliemedewerker")){
						rechten = 1;
						}
					if(p.getFunctie().equals("monteur")){
						rechten = 2;
						}
					}
					else if(o instanceof Klant){
						Klant k = (Klant)request.getSession().getAttribute("user");
						rechten = 0;
					}
					if (rechten == 0){
					%>
					<a class="btn btn-primary btn-large" href="${pageContext.request.contextPath}/klant/parkeerplaats-reserveren.jsp">Parkeerdiensten... &raquo;</a>
					<a class="btn btn-primary btn-large" href="${pageContext.request.contextPath}/klant/afspraak-maken.jsp">Afspraak maken... &raquo;</a>
					<%}
					if (rechten == 2){
					%>
					<a class="btn btn-primary btn-large" href="${pageContext.request.contextPath}/monteur/agenda-bekijken.jsp">Agenda bekijken... &raquo;</a>
					<%} 
					if (rechten == 3){%>
					<a class="btn btn-primary btn-large" href="${pageContext.request.contextPath}/medewerker/parkeren.jsp">Parkeerdiensten... &raquo;</a>
					<a class="btn btn-primary btn-large" href="${pageContext.request.contextPath}/medewerker/onderhoud.jsp">Onderhoudsdiensten... &raquo;</a>
					<a class="btn btn-primary btn-large" href="${pageContext.request.contextPath}/medewerker/tanken.jsp">Tanken... &raquo;</a>
					<%} %>
				</div>

			</div>
<!-- eind content -->			
			
<!-- include footer -->			
<%@ include file="skelet/footer.jsp"%>